package com.sprucetec.live.base.entity;

import com.google.common.hash.BloomFilter;
import com.google.common.hash.Funnels;
import com.sprucetec.live.common.dto.business.LiveVideoDto;
import lombok.Data;

/**
 * @ClassName BloomFilterContainer
 * @Description: 布隆过滤器容器
 * @Author Kenny
 * @Date 2020/4/23
 **/
@Data
public class BloomFilterContainer {
    private static final int capacity = 1000000; // 容量
    private static final int key = 999998;

    public static class VideoContainer { // 视频
        public static BloomFilter<byte[]> videoContainer = BloomFilter.create(Funnels.byteArrayFunnel(), capacity);
    }
}
